package com.cloud.api.user.repository;

import org.springframework.data.repository.reactive.ReactiveCrudRepository;
import org.springframework.stereotype.Repository;

import com.cloud.model.UserToken;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

public interface TokenESRepository extends ReactiveCrudRepository<UserToken, String>
{
	
	public Flux<UserToken> findByUserid(String userid);
	
	public Mono<UserToken> findByToken(String token);
}
